package com.job.Yangmingyu;

import java.util.*;

/**
 * @author Yangmingyu
 * @version 1.0
 * @since 2022-07-20 21:41:16
 */
public class Zuoye0720 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String str=sc.next();//输入一个字符串
        HashMap<Character,Integer> a=new LinkedHashMap<>();
        for (int i = 0; i <str.length() ; i++) {
            char b = str.charAt(i);//赋值
            if(a.containsKey(b)){
                Integer value = a.get(b);//值
                value = value+1;
                a.put(b,value);
            }else{
                a.put(b,1);
            }
        }
        //输出
        Set<Map.Entry<Character, Integer>> entrySet = a.entrySet();
        for(Map.Entry<Character, Integer> entry : entrySet){
            Character b = entry.getKey();//返回对应键
            Integer  value = entry.getValue();//返回对应值
            System.out.println(b+"\t"+value);
        }
    }
}